package com.qianchang.microfinance.view.credit.data;

import android.content.Context;

import com.qianchang.microfinance.R;
import com.qianchang.microfinance.bean.CommonSinglePickBean;

import java.util.ArrayList;
import java.util.List;


/**
 * 版 权: 深圳市迪蒙网络科技有限公司
 * 描 述:
 * 修 改 人: zhoulai
 * 修改时间: 2017/7/12 17:26
 */


public class BasicInitDataUtils {

    /**
     * 初始化性别
     */
    public static ArrayList<CommonSinglePickBean> getFamilyInfoList(final Context context) {

        return new ArrayList<CommonSinglePickBean>() {
            {
                add(new CommonSinglePickBean("0", context.getString(R.string.noChild)));
                add(new CommonSinglePickBean("1", context.getString(R.string.one_child)));
                add(new CommonSinglePickBean("2", context.getString(R.string.two_child)));
                add(new CommonSinglePickBean("3", context.getString(R.string.two_more_child)));
            }
        };
    }

    /**
     * 初始化性别
     */
    public static ArrayList<CommonSinglePickBean> getGenderList(final Context context) {

        return new ArrayList<CommonSinglePickBean>() {
            {
                add(new CommonSinglePickBean("0", context.getString(R.string.male)));
                add(new CommonSinglePickBean("1", context.getString(R.string.female)));
            }
        };
    }


    /**
     * 学历，0：无学历，1：小学，2：初中、3：高中，4：专科，5：本科，6：硕士，7：博士 8: 其他',  前端控好这个，和数据库一致        删除了之前的4、5，新增了一个其他，下标往前挪
     * 0：无学历，1：小学，2：初中、3：高中，4：中专，5：高职，6：专科，7：本科，8：硕士，9：博士
     */
    public static ArrayList<CommonSinglePickBean> getEducationList(final Context context) {

        return new ArrayList<CommonSinglePickBean>() {
            {
                add(new CommonSinglePickBean("1", context.getString(R.string.specialist)));
                add(new CommonSinglePickBean("2", context.getString(R.string.undergraduate)));
                add(new CommonSinglePickBean("3", context.getString(R.string.master_degree)));
                add(new CommonSinglePickBean("4", context.getString(R.string.phd)));
            }
        };
    }


    /**
     * 初始化婚姻状态
     */
    public static ArrayList<CommonSinglePickBean> getMarryList(final Context context) {

        return new ArrayList<CommonSinglePickBean>() {
            {
                add(new CommonSinglePickBean("0", context.getString(R.string.unmarried)));
                add(new CommonSinglePickBean("1", context.getString(R.string.married)));
                add(new CommonSinglePickBean("2", context.getString(R.string.widowed)));
                add(new CommonSinglePickBean("3", context.getString(R.string.divorced)));
            }
        };
    }


    /**
     * 工作状态
     */
    public static List<CommonSinglePickBean> getWorkStatusList(final Context context) {
        return new ArrayList<CommonSinglePickBean>() {
            {
                add(new CommonSinglePickBean("0", context.getString(R.string.label_be_reading)));
                add(new CommonSinglePickBean("1", context.getString(R.string.label_be_working)));
            }
        };
    }


    /**
     * 初始化性别
     */
    public static ArrayList<CommonSinglePickBean> getRelationshipList(final Context context) {

        return new ArrayList<CommonSinglePickBean>() {
            {
                add(new CommonSinglePickBean("0", context.getString(R.string.father)));
                add(new CommonSinglePickBean("1", context.getString(R.string.mother)));
                add(new CommonSinglePickBean("2", context.getString(R.string.spouse)));
                add(new CommonSinglePickBean("3", context.getString(R.string.brother)));
                add(new CommonSinglePickBean("4", context.getString(R.string.sister)));
                add(new CommonSinglePickBean("5", context.getString(R.string.children)));
                add(new CommonSinglePickBean("6", context.getString(R.string.mfriend)));
                add(new CommonSinglePickBean("7", context.getString(R.string.mcolleague)));
                add(new CommonSinglePickBean("8", context.getString(R.string.qother)));
            }
        };
    }

    public static List<CommonSinglePickBean> getBuildingUseList(final Context context) {
        return new ArrayList<CommonSinglePickBean>() {
            {
                add(new CommonSinglePickBean("0", context.getString(R.string.label_live)));////        住房用途(0:自住、1：出租)
                add(new CommonSinglePickBean("1", context.getString(R.string.label_lease)));
            }
        };
    }
}
